import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'
import 'element-plus/theme-chalk/index.css'
import { createApp } from 'vue'
import App from './App.vue'
import { components, plugins } from './plugins/element-plus'
import router from './route'

const app = createApp(App)

app.use(router)
// 注册全部antdv组件
app.use(Antd)

// 按需导入Element Plus组件和插件
components.forEach((component) => {
  app.component(component.name, component)
})
plugins.forEach((plugin) => {
  app.use(plugin)
})

app.mount('#app')
